package org.budo.support.spring.test.web.servlet.request.mock;

import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;

/**
 * @author limingwei
 */
public class MockRequest {
    public static final MockRequest INSTANCE = new MockRequest();

    public MockHttpServletRequestBuilder post(String urlTemplate, Object... urlVars) {
        return MockMvcRequestBuilders.post(urlTemplate, urlVars);
    }

    public MockHttpServletRequestBuilder get(String urlTemplate, Object... urlVars) {
        return MockMvcRequestBuilders.get(urlTemplate, urlVars);
    }
}